count even and odd numbers in an array in c